package cate.game.activity.base.spo;

import cate.game.activity.base.core.ActivityGlobalData;
import cate.game.db.mongo.kv.KvMongo;
import easy.java.dev.note.NoteField;

import java.util.HashMap;
import java.util.Map;

public class ActivityGlobalSPO extends KvMongo {
    @NoteField("开启着的活动")
    public Map<Integer, ActivityGlobalData> globalDataMap;

    @Override
    public String getKeyPrefix() {
        return KvMongo.KEY_ACTIVITY_GLOBAL;
    }

    @Override
    public void initialize() {
        if (globalDataMap == null) {
            globalDataMap = new HashMap<>();
        }
    }
}
